package com.bls.cate.test.Login;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.blankj.utilcode.util.ToastUtils;
import com.bls.cate.R;
import com.bls.cate.test.Base.BaseModelImpl;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class LoginActivity extends AppCompatActivity implements LoginView {

    private LoginPresenter loginPresenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login2);
        ButterKnife.bind(this);
        loginPresenter = new LoginPresenterImpl(this, new BaseModelImpl());
    }

    @OnClick(R.id.btn_pwd)
    public void onBtnPwdClicked() {
        loginPresenter.sendVerificationCode("111");
    }

    @OnClick(R.id.btn_login)
    public void onBtnLoginClicked() {
    }

    @OnClick(R.id.btn_register)
    public void onBtnRegisterClicked() {
    }

    @Override
    public void sendVerificationCode() {
        ToastUtils.showLong("11111111111");
    }
}
